package org.qiuqiu.vo;

import java.util.Date;

public class Post {
    private Integer postid;
	private Integer userid;
	private String postTitle;
	private String postUsername;
	private Date postCreatetime;
	private String postContent;
	private Integer postResponse;
	//增加属性
	private Integer postRead;
	private String img;
	
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public Integer getPostid() {
		return postid;
	}

	public void setPostid(Integer postid) {
		this.postid = postid;
	}

	public Integer getPostRead() {
		return postRead;
	}

	public void setPostRead(Integer postRead) {
		this.postRead = postRead;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getPostTitle() {
		return postTitle;
	}

	public void setPostTitle(String postTitle) {
		this.postTitle = postTitle;
	}

	public String getPostUsername() {
		return postUsername;
	}

	public void setPostUsername(String postUsername) {
		this.postUsername = postUsername;
	}

	public Date getPostCreatetime() {
		return postCreatetime;
	}

	public void setPostCreatetime(Date postCreatetime) {
		this.postCreatetime = postCreatetime;
	}

	public String getPostContent() {
		return postContent;
	}

	public void setPostContent(String postContent) {
		this.postContent = postContent;
	}

	public Integer getPostResponse() {
		return postResponse;
	}

	public void setPostResponse(Integer postResponse) {
		this.postResponse = postResponse;
	}

	private User user;
    public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public String toString() {
		return "Post [postid=" + postid + ", userid=" + userid + ", postTitle="
				+ postTitle + ", postUsername=" + postUsername
				+ ", postCreatetime=" + postCreatetime + ",  postContent=" + postContent + ", postResponse="
				+ postResponse + "]";
	}
    
}